const GETHEIGHT = 'GETHEIGHT'
const app = {
  state: {
    sidebar: {
      height: document.documentElement.clientHeight
    }
  },
  mutations: {
    [GETHEIGHT]: (state,height) => {
      state.sidebar.height = height;
    }
  },
  actions: {
	setHeight ({ commit },height) {
	  commit(GETHEIGHT,height)
	}
  }
}

export default app
